package com.quyunshuo.module.home.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.quyunshuo.module.home.R
import com.quyunshuo.module.home.databinding.RvItemProjectBinding
import com.quyunshuo.module.home.databinding.RvItemPublicArticleBinding


class MainShoppRvAdapter: BaseQuickAdapter<String, MainShoppRvAdapter.ViewHolder>(R.layout.rv_item_project) {

    // 自定义 ViewHolder
    inner class ViewHolder(val binding: RvItemProjectBinding) : BaseViewHolder(binding.root)

    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder {
        // 使用 ViewBinding 创建视图
        val binding = RvItemProjectBinding.inflate(
            LayoutInflater.from(parent.context),
            parent,
            false
        )
        return ViewHolder(binding)
    }



    override fun convert(holder: ViewHolder, item: String) {

    }

}